package com.eastfair.questionnaire.dto;

import com.eastfair.annotation.model.EchoVO;
import com.eastfair.core.base.entity.SuperEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.time.LocalDateTime;

/**
 * @ClassName QuestionConfig
 * @Description TODO
 * @Author yuwx
 * @Date 2021/11/15 11:17
 * @Version 1.0
 **/
@Data
public class DisplayLocationQuestionnaireDTO {
    @NotNull(message = "问卷ID不能为空", groups = {SuperEntity.Update.class})
    private Long id;
    @ApiModelProperty(hidden = true)
    private Long flagId;
    @ApiModelProperty(value = "问卷ID", required = true)
    @NotNull(message = "问卷ID不能为空", groups = {SuperEntity.Save.class, SuperEntity.Update.class})
    private Long questionnaireId;
    @ApiModelProperty(value = "显示位置", required = true)
    @NotNull(message = "显示位置不能为空", groups = SuperEntity.Save.class)
    @Null(message = "不可修改", groups = SuperEntity.Update.class)
    private String displayLocation;

    @ApiModelProperty(value = "创建时间", hidden = true)
    @Null(message = "不可修改")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人", hidden = true)
    @Null(message = "不可修改")
    private Long createdBy;

    @ApiModelProperty(value = "修改时间", hidden = true)
    @Null(message = "不可修改")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "修改人", hidden = true)
    @Null(message = "不可修改")
    private Long updateBy;
}
